package cn.cfoodc.sharding.mapper;

import cn.cfoodc.sharding.domain.TOrderItem;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TOrderItemMapper {
    int deleteByPrimaryKey(Long orderItemId , Long userId);

    int insert(@Param("record") TOrderItem record);

    TOrderItem selectByPrimaryKey(Long orderItemId,Long userId);

    List<TOrderItem> selectPage(@Param("userId")Long userId , @Param("orderId")Long orderId , @Param("indexLine")int indexLine,@Param("pageSize")int pageSize);

    List<TOrderItem> selectAllPage(@Param("indexLine")int indexLine, @Param("pageSize")int pageSize);

    int updateByPrimaryKey(TOrderItem tOrderItem);
}